/**
 * 出库单 api 封装
 *
 * @Author:    zzx
 * @Date:      2025-08-13 15:17:33
 * @Copyright  zzx
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const outboundInfoApi = {

  /**
   * 分页查询  @author  zzx
   */
  queryPage : (param) => {
    return postRequest('/outboundInfo/queryPage', param);
  },

  /**
   * 增加  @author  zzx
   */
  add: (param) => {
      return postRequest('/outboundInfo/add', param);
  },

  /**
   * 修改  @author  zzx
   */
  update: (param) => {
      return postRequest('/outboundInfo/update', param);
  },


  /**
   * 删除  @author  zzx
   */
  delete: (id) => {
      return getRequest(`/outboundInfo/delete/${id}`);
  },

  /**
   * 批量删除  @author  zzx
   */
  batchDelete: (idList) => {
      return postRequest('/outboundInfo/batchDelete', idList);
  },

  /**
   * 详情  @author  zzx
   */
  detail: (id) => {
      return getRequest(`/outboundInfo/detail/${id}`);
  },

  /**
   * 导出  @author  zzx
   */
  exportExcl: (id) => {
      return getRequest(`/outboundInfo/exportExcl/${id}`);
  },

};
